package cn.gxa.edu_adm.service.impl;

import cn.gxa.edu_adm.bean.Classes;
import cn.gxa.edu_adm.commn.model.ResultData;
import cn.gxa.edu_adm.dao.ClassesDao;
import cn.gxa.edu_adm.dao.impl.ClassesDaoImpl;
import cn.gxa.edu_adm.service.ClassesService;

import java.util.List;

public class ClassesServiceImpl  implements ClassesService {
    ClassesDao classesDao=new ClassesDaoImpl();

    @Override
    public ResultData findByManyWhere(Integer page, Integer limit, String name, Integer state) {
        if(page==null  ||   limit==null){
            //查询全部
            List<Classes> list=classesDao.findAll();
            return  ResultData.ok().data(list);
        }else{
            //分页查询
            //..........
        }
        return null;
    }
}
